home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.metal;
-
- import com.sun.java.swing.JLabel;
- import com.sun.java.swing.JList;
- import com.sun.java.swing.plaf.basic.BasicListCellRenderer;
- import com.sun.java.swing.preview.filechooser.FileFilter;
- import java.awt.Component;
-
- public class MetalFileChooserUI$FilterComboBoxRenderer extends BasicListCellRenderer {
- // $FF: synthetic field
- MetalFileChooserUI this$0;
-
- public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
- super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
- FileFilter filter = (FileFilter)value;
- if (filter != null) {
- ((JLabel)this).setText(filter.getDescription());
- }
-
- return this;
- }
-
- // $FF: synthetic method
- public MetalFileChooserUI$FilterComboBoxRenderer(MetalFileChooserUI this$0) {
- this.this$0 = this$0;
- }
- }
-